import request from '@/utils/request'

// 查询用户中奖纪录列表
export function listUserPrize(query) {
  return request({
    url: '/prize/userPrize/list',
    method: 'get',
    params: query
  })
}

// 查询用户中奖纪录详细
export function getUserPrize(id) {
  return request({
    url: '/prize/userPrize/' + id,
    method: 'get'
  })
}

// 新增用户中奖纪录
export function addUserPrize(data) {
  return request({
    url: '/prize/userPrize',
    method: 'post',
    data: data
  })
}

// 修改用户中奖纪录
export function updateUserPrize(data) {
  return request({
    url: '/prize/userPrize',
    method: 'put',
    data: data
  })
}

// 删除用户中奖纪录
export function delUserPrize(id) {
  return request({
    url: '/prize/userPrize/' + id,
    method: 'delete'
  })
}
